import { http } from '@/utils/http'

/**
 * 首页知识列表
 */
export const feedListApi = (data) => {
  return http.request({
    url: '/patient/home/knowledge',
    data
  })
}

/**
 * 推荐医生列表
 */
export const doctorListApi = (current = 1, pageSize = 5) => {
  return http.request({
    url: '/home/page/doc',
    params: { current, pageSize }
  })
}

/**
 * 关注医生
 */
export const followDoctorApi = (id, type = 'doc') => {
  return http.request({
    method: 'POST',
    url: '/like',
    data: { id, type }
  })
}

//问诊-订单-评价医生
export const patientOrderEvaluateAPI = (data) => {
  return http.request({
    method: 'POST',
    url: '/patient/order/evaluate',
    data
  })
}
